package com.jdz.controller.backend;

import com.jdz.common.ServerResponse;
import com.jdz.service.IGroupUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/manage/groupuser")
public class GroupUserManageController {

    @Autowired
    IGroupUserService iGroupUserService;

    /**
     * 角色管理
     * @param stuno
     * @param groupno
     * @return
     */
    @RequestMapping(value = "add_group.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse list(Integer stuno, Integer groupno) {
        return iGroupUserService.add(stuno,groupno);
    }


}
